package com.example.test_app;

import android.content.Intent;
import android.os.Bundle;


import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.navigation.fragment.NavHostFragment;


public class BlankFragment2 extends ChildFragment {


    public BlankFragment2() {
        // Required empty public constructor

    }

    @Override
    public void startActivityForResult(Intent intent, int requestCode) {
        super.startActivityForResult(intent, requestCode);
    }

    @Override
    public void setUserVisibleHint(boolean isVisibleToUser) {
        super.setUserVisibleHint(isVisibleToUser);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    View view;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        Log.d(getClass().getSimpleName(), "onCreateView: ");
        view = inflater.inflate(R.layout.fragment_blank2, container, false);



        return view;
    }

    @Override
    public void onResume() {
        super.onResume();
        try {
            Log.d("BlankFragment2", "onResume: " + ((ViewGroup) view.getParent()).getId());
        } catch (Exception e) {

        }

    }

    @Override
    public void onStart() {
        super.onStart();

        Log.d(getClass().getSimpleName(), "onStart: ");
    }

    @Override
    public void onActivityCreated(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();

    }
}